package com.kuzlak.cms.module.sys.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kuzlak.cms.module.sys.entity.SysUserRole;
import com.kuzlak.cms.module.sys.mapper.SysUserRoleMapper;
import com.kuzlak.cms.module.sys.service.SysUserRoleService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author hesenjan
* @description 针对表【sys_user_role(用户角色关联表)】的数据库操作Service实现
* @createDate 2024-11-30 19:24:14
*/
@Service
public class SysUserRoleServiceImpl extends ServiceImpl<SysUserRoleMapper, SysUserRole>
    implements SysUserRoleService{

    @Override
    public List<SysUserRole> getUserRoleByUserId(Long userId) {
        LambdaQueryWrapper<SysUserRole> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(SysUserRole::getUserId,userId);
        return this.list(wrapper);

    }

    @Override
    public List<String> findByPerIds(Long userId) {
        return List.of();
    }

    @Override
    public List<String> findByPerKeys(Long id) {
        return List.of();
    }
}




